import { defineStore } from "pinia";

const useUserStore = defineStore('user', {
    state: () => {
        return {
            userInfo: {
                name: '张三',
                age: 22,
                sex: '男',
            }
        }
    },
    actions: {
        log() {
            console.log(this.userInfo)
        }
    },
    getters: {

    }
})

export default useUserStore